import { Component } from '@angular/core';
import { Router } from '@angular/router';
import * as Parse from "parse"
@Component({
  selector: 'app-page-home',
  templateUrl: './page-home.component.html',
  styleUrls: ['./page-home.component.scss']
})
export class PageHomeComponent {
  PetInfoList:any = []
  constructor(private router:Router){
    this.getPetData()
  }
  async getPetData(){
    let query = new Parse.Query("PetInfo")
    this.PetInfoList = await query.find()
  }
  goDetail(goodsid:string){
    // routerLink="/demo-cypet/goodsdetail?"
    this.router.navigate(["/demo-cypet/goodsdetail",{
        id:goodsid
    }])
  }
}
   




  

